package com.xxgc.qinglian.qinglianserver.entity;/*
 * @Author:lsx
 * @Date:2025/6/9--06--09--20:39
 *
 */

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import org.dromara.autotable.annotation.ColumnComment;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;
import org.dromara.mpe.autotable.annotation.ColumnId;
import org.dromara.mpe.autotable.annotation.Table;
import org.dromara.mpe.processer.annotation.AutoDefine;
import org.dromara.mpe.processer.annotation.AutoMapper;
import org.dromara.mpe.processer.annotation.AutoRepository;

import java.time.LocalDateTime;

@AutoDefine
@AutoMapper
@AutoRepository
@Data
@Table(value = "qinglian_vote", comment = "投票表")
public class VoteEntity {
    @ColumnComment("投票id")
    @ColumnId(mode = IdType.AUTO, comment = "投票主键", type = MysqlTypeConstant.BIGINT, length = 32)
    private String voteId;

    @ColumnComment("投票标题")
    private String voteTitle;

    @ColumnComment("投票状态")
    private String voteStatus;

    @ColumnComment("类型")
    private String voteType;

    @ColumnComment("创建时间")
    private LocalDateTime createTime;

    @ColumnComment("用户类型1")
    private Integer userType1;

    @ColumnComment("用户类型2")
    private Integer userType2;

    @ColumnComment("介绍")
    private String description;

    @ColumnComment("投票背景")
    private String voteImage;

    @ColumnComment("用户类型1票数")
    private Integer userVote1;

    @ColumnComment("用户类型2票数")
    private Integer userVote2;
    @ColumnComment("用户id")
    private String userId;
}
